package com.hns.can.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hns.can.common.entity.BaseEntity;

/**
 * 角色表 实体
 * @author:Fisher
 * @email:zhuangcaijin@126.com
 * @version Revision 2.0.0
 */
@SuppressWarnings("serial")
@Entity
@Table(name="T_SYS_ROLE")
public class SysRoleEntity extends BaseEntity {

	// Fields
	@Id
	@Column(name = "ID")
	private String id;

	@Column(name = "CORP_ID")
	private String corpId;

	@Column(name = "CODE")
	private String code;
	
	@Column(name = "NAME")
	private String name;
	
	@Column(name = "REMARK")
	private String remark;

	@Column(name = "CREATE_TS")
    private Date createTs;
	
	@Column(name = "PARENT_ROLE_ID")
    private String parentRoleId;

    @Column(name = "ROLE_TYPE")
    private String roleType;
	
	@Transient
	private String corpName;// 企业名称
	
	@Transient
	private String tmpParentRid;// 备份父节点id（针对某个节点为根节点时用到）

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
    public String getCorpId() {
        return this.corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }
    
    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public Date getCreateTs() {
        return this.createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

	public String getParentRoleId() {
		return parentRoleId;
	}

	public void setParentRoleId(String parentRoleId) {
		this.parentRoleId = parentRoleId;
	}

	public String getCorpName() {
		return corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	public String getTmpParentRid() {
		return tmpParentRid;
	}

	public void setTmpParentRid(String tmpParentRid) {
		this.tmpParentRid = tmpParentRid;
	}
	
}